x86, hap: Track max_mapped_pfn better when using 2MB p2m mappings.
authorKeir Fraser <keir.fraser@citrix.com>
Wed, 22 Oct 2008 10:58:20 +0000 (11:58 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Wed, 22 Oct 2008 10:58:20 +0000 (11:58 +0100)
commita326f234ae90ef49c95b5b9a09e626685741c264
tree65508c2d8fc6a26c176d235a1671b3136bde9397
parent4a3f6b62a116a01c5692d374bbb1d87ac09d228d
x86, hap: Track max_mapped_pfn better when using 2MB p2m mappings.

The test for when to increase it was not quite right; also on EPT
the value it was set to didn't count the top 511 frames.

Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
xen/arch/x86/mm/hap/p2m-ept.c
xen/arch/x86/mm/p2m.c